package com.etime.service;

import com.etime.pojo.User;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {
    List<User> getAllUser();
    boolean login(User user, HttpSession session);

    PageInfo<User> getUserByPage(Integer page);
    PageInfo<User> getUserByName(Integer page,String user_name);

    boolean register(User user);

    boolean userLogin(User user, HttpSession session);

    User getUserById(Integer user_id);

    boolean updateUser(User user);
}
